package com.xlyy.modbus.service.impl;

import com.xlyy.modbus.entity.MyHeadinfo;
import com.xlyy.modbus.mapper.MyHeadinfoMapper;
import com.xlyy.modbus.service.IMyHeadinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhoucanji
 * @since 2024-05-15
 */
@Service
public class MyHeadinfoServiceImpl extends ServiceImpl<MyHeadinfoMapper, MyHeadinfo> implements IMyHeadinfoService {

    @Override
    public MyHeadinfo getMyHeadinfoById() {
        return this.getById(1);
    }

    @Override
    public boolean saveupdateMyHeadinfo(MyHeadinfo myHeadinfo) {
        return this.saveOrUpdate(myHeadinfo);
    }
}
